/**
 * Created by way on 16/9/21.
 */

import cfg from '../config';
import Router from '../lib/krouter';
import { urlParam, session, getHash } from '../lib/kutil';
import { get, docker } from '../util/api';

// js
import Home from './train/home';
import List from './train/list';
import Book from './train/book';
import User from './train/user';
import Passenger from './train/passenger';
import Order from './train/order';
import OrderDetail from './train/order-detail';
import OrderQuery from './train/order-query';
import PayOrder from './train/payorder';
import PayResult from './train/pay-result';
import ChangeSign from './train/change-sign';
import InfoService from './train/info-service';

const router = new Router({
  container: '#dvContainer',
});

document.ready(() => {
  router
    .push(new Home())
    .push(new List())
    .push(new User())
    .push(new Passenger())
    .push(new Order())
    .push(new OrderDetail())
    .push(new Book())
    .push(new OrderQuery())
    .push(new PayOrder())
    .push(new ChangeSign())
    .push(new InfoService())
    .push(new PayResult())
    ;

  // 路由
  // router.start('/train/home');
  router.start('/train/book');
});